package com.breakfast.fun.ui.user.order;

import com.breakfast.fun.data.entity.user.order.Order;
import com.breakfast.fun.data.entity.user.recharge.RechargeMoney;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/30.
 */
public class BFOrderModel implements BFOrderContract.Model {
    @Override
    public Observable<Order> getBFOrderModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getOrderModel(map)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<RechargeMoney> getPayBeanModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getPayBeanModel(map)
                .compose(RxSchedulers.io_main());
    }
}
